﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WMI.root.cimv2;

/// <summary>
/// Summary description for NetworkGeneral
/// </summary>
static public class NetworkGeneral
{
    public static string[] Roles
    {
        get
        {
            var computers = ComputerSystem.GetInstances();
            foreach (ComputerSystem item in computers)
            {
                return item.Roles;
            }
            throw new ApplicationException();
        }
    }
}
